<template>
  <div class="error-page">
    <div class="error-code">404</div>
    <div class="error-desc">抱歉，您访问的页面不存在</div>
    <el-button type="primary" class="error-btn" @click="handleBack">
      返回首页
    </el-button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()

function handleBack() {
  router.push('/')
}
</script>

<style lang="less" scoped>
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f7fa;

  .error-code {
    font-size: 160px;
    font-weight: bold;
    color: var(--el-color-primary);
    line-height: 1;
    margin-bottom: 24px;
  }

  .error-desc {
    font-size: 20px;
    color: #909399;
    margin-bottom: 32px;
  }

  .error-btn {
    padding: 12px 24px;
    font-size: 16px;
  }
}
</style> 